<table>
<?php 
if($friends){
foreach ($friend as $fr):{?>
 <tr>
 <?php 
 
 echo $this->Html->image($fr['Profile']['avatar'],array('alt'=>'CakePHP','width'=>'50px','height'=>'50px'));
       echo $fr['User']['username'];
      echo $this->Html->link('Xác nhận',array('controller'=>'FriendUsers','action'=>'friend',$fr['User']['id'],$name['User']['id']));
       
       ?>
       <br />
 </tr>
  
  
  
  
<?php }endforeach;}
else echo 'Không có ai';?>
</table>  
<?php echo $this->Html->link('Trở lại',array('controller'=>'Users','action'=>'view'));?>